﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A6B RID: 2667
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyBeginScRsp : IMessage<LobbyBeginScRsp>, IMessage, IEquatable<LobbyBeginScRsp>, IDeepCloneable<LobbyBeginScRsp>, IBufferMessage
	{
		// Token: 0x170021BA RID: 8634
		// (get) Token: 0x06007783 RID: 30595 RVA: 0x0013F6CD File Offset: 0x0013D8CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyBeginScRsp> Parser
		{
			get
			{
				return LobbyBeginScRsp._parser;
			}
		}

		// Token: 0x170021BB RID: 8635
		// (get) Token: 0x06007784 RID: 30596 RVA: 0x0013F6D4 File Offset: 0x0013D8D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyBeginScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170021BC RID: 8636
		// (get) Token: 0x06007785 RID: 30597 RVA: 0x0013F6E6 File Offset: 0x0013D8E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyBeginScRsp.Descriptor;
			}
		}

		// Token: 0x06007786 RID: 30598 RVA: 0x0013F6ED File Offset: 0x0013D8ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyBeginScRsp()
		{
		}

		// Token: 0x06007787 RID: 30599 RVA: 0x0013F700 File Offset: 0x0013D900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyBeginScRsp(LobbyBeginScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.memberInfo_ = other.memberInfo_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007788 RID: 30600 RVA: 0x0013F736 File Offset: 0x0013D936
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyBeginScRsp Clone()
		{
			return new LobbyBeginScRsp(this);
		}

		// Token: 0x170021BD RID: 8637
		// (get) Token: 0x06007789 RID: 30601 RVA: 0x0013F73E File Offset: 0x0013D93E
		// (set) Token: 0x0600778A RID: 30602 RVA: 0x0013F746 File Offset: 0x0013D946
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170021BE RID: 8638
		// (get) Token: 0x0600778B RID: 30603 RVA: 0x0013F74F File Offset: 0x0013D94F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MemberInfo> MemberInfo
		{
			get
			{
				return this.memberInfo_;
			}
		}

		// Token: 0x0600778C RID: 30604 RVA: 0x0013F757 File Offset: 0x0013D957
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyBeginScRsp);
		}

		// Token: 0x0600778D RID: 30605 RVA: 0x0013F768 File Offset: 0x0013D968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyBeginScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.memberInfo_.Equals(other.memberInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600778E RID: 30606 RVA: 0x0013F7B8 File Offset: 0x0013D9B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.memberInfo_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600778F RID: 30607 RVA: 0x0013F805 File Offset: 0x0013DA05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007790 RID: 30608 RVA: 0x0013F80D File Offset: 0x0013DA0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007791 RID: 30609 RVA: 0x0013F818 File Offset: 0x0013DA18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			this.memberInfo_.WriteTo(ref output, LobbyBeginScRsp._repeated_memberInfo_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007792 RID: 30610 RVA: 0x0013F868 File Offset: 0x0013DA68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.memberInfo_.CalculateSize(LobbyBeginScRsp._repeated_memberInfo_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007793 RID: 30611 RVA: 0x0013F8BC File Offset: 0x0013DABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyBeginScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.memberInfo_.Add(other.memberInfo_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007794 RID: 30612 RVA: 0x0013F909 File Offset: 0x0013DB09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007795 RID: 30613 RVA: 0x0013F914 File Offset: 0x0013DB14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.memberInfo_.AddEntriesFrom(ref input, LobbyBeginScRsp._repeated_memberInfo_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002DB2 RID: 11698
		private static readonly MessageParser<LobbyBeginScRsp> _parser = new MessageParser<LobbyBeginScRsp>(() => new LobbyBeginScRsp());

		// Token: 0x04002DB3 RID: 11699
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002DB4 RID: 11700
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04002DB5 RID: 11701
		private uint retcode_;

		// Token: 0x04002DB6 RID: 11702
		public const int MemberInfoFieldNumber = 15;

		// Token: 0x04002DB7 RID: 11703
		private static readonly FieldCodec<MemberInfo> _repeated_memberInfo_codec = FieldCodec.ForMessage<MemberInfo>(122U, EggLink.DanhengServer.Proto.MemberInfo.Parser);

		// Token: 0x04002DB8 RID: 11704
		private readonly RepeatedField<MemberInfo> memberInfo_ = new RepeatedField<MemberInfo>();
	}
}
